package com.huangkailong.designpattern.bridge;

/**
 * 抽象消息，桥接接口.
 *
 * @author huangkl
 * @since 1.0.0
 */
public abstract class AbstractMessage implements Message {
    private final Message message;

    public AbstractMessage(Message message) {
        this.message = message;
    }

    @Override
    public void send(String message, String toSender) {
        this.message.send(message, toSender);
    }
}
